/*==============================================================================
**                                 4Smart
**                     Proprietary - Copyright (C) 2013
**------------------------------------------------------------------------------
** Supported MCUs      : MCU independent
** Supported Compilers : Compiler independent
**------------------------------------------------------------------------------
** File name         : Std_Types.h
**
** Module name       : Std_Types
**
** Requirement specification : none
**
** Summary:  
**
** Generator Version : V1.13 
**
**= History ====================================================================
** Generation date: Tue Oct 09 15:54:29 GMT+07:00 2012
==============================================================================*/

#ifndef STD_TYPES_H
#define STD_TYPES_H


/******************************************************************************/
/* INCLUSIONS                                                                 */
/******************************************************************************/
#include "compiler.h"


/******************************************************************************/
/* SYMBOLS DEFINITION                                                         */
/******************************************************************************/
#ifndef TRUE
	#define TRUE 1
#endif
#ifndef FALSE
	#define FALSE 0
#endif
/******************************************************************************/
/* TYPES DEFINITION                                                           */
/******************************************************************************/
typedef u8 BOOLEAN;
typedef u8 Std_ReturnType;
#define E_OK    0x00
#define E_NOT_OK 0x01
typedef unsigned char StatusType; /* OSEK compliance */
#define E_PENDING 0x0A
#define E_COMPARE_KEY_FAILED 0x0B
#define E_NO_DTC_AVAILABLE 0x02
#define E_REQUEST_NOT_ACCEPTED 0x08
#define E_PROTOCOL_NOT_ALLOWED    0x05
#define E_FORCE_RCRRP  0x0C

#define STD_HIGH  0x01   /* Physical state 5V or 3.3V */
#define STD_LOW   0x00   /* Physical state 0V         */

#define STD_ACTIVE  0x01   /* Logical state active */
#define STD_IDLE    0x00   /* Logical state idle   */

#define STD_ON    0x01
#define STD_OFF   0x00

typedef struct { u16 moduleID; u8 sw_major_version; u8 sw_minor_version; u8 sw_patch_version; } Std_VersionInfoType;

#endif /* STD_TYPES_H */

